import React from 'react'
import {TouchableOpacity, View} from 'react-native'
import Ionicons from 'react-native-vector-icons/Ionicons'

class ViewUtil {
    static getLeftBackButton = (callBack) => {
        return (<TouchableOpacity
            style={{padding: 8, paddingLeft: 12}}
            onPress={callBack}
        >
            <Ionicons
                name={'ios-arrow-back'}
                size={26}
                style={{color: 'white'}}
            />
        </TouchableOpacity>)
    }

    static getShareButton_ = (callBack) => {
        return (<TouchableOpacity
            underlayColor={'transparent'}
            onPress={callBack}
        >
            <Ionicons
                name={'md-share'}
                size={20}
                style={{color: 'white', opacity: 0.9, marginRight: 10}}
            />
        </TouchableOpacity>)
    }

    static getShareButton(callBack) {
        return <TouchableOpacity
            style={{padding: 4, marginRight: 4,}}
            onPress={callBack}
        >
            <Ionicons
                name={'md-share'}
                size={20}
                style={{color: 'white', marginRight: 4}}
            />
        </TouchableOpacity>

    }
}

export {ViewUtil}